﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace Common
{
    public class Log
    {
        static string logFile = "D:/AlgorithmLog.txt";
        public static void write(string title, string msg)
        {
            StreamWriter sw = new StreamWriter(logFile, true, Encoding.UTF8);
            sw.WriteLine("时间：" + DateTime.Now.ToString().Trim());
            sw.WriteLine(title + "：" + msg);
            sw.Flush();
            sw.Close();
            sw.Dispose();
        }
    }
}
